<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui" xmlns:h="http://java.sun.com/jsf/html" template="../template_back.xhtml">
  
  <ui:define name="content">
  
    <h:form id="contentForm">
      <h:panelGrid columns="1" rows="2">
      
        <h:outputText value="Login client" />
        <p:inputText id="login" value="#{clientController.modifClient.login}" required="true"/>
        <h:message for="login"></h:message>
 
        <h:outputText value="Password client" />
        <p:inputText id="password" value="#{clientController.modifClient.password}" required="true"/>
        <h:message for="password"></h:message>
 
     	<h:outputLabel for="nom" value="Nom" />
    	<p:inputText id="nom" value="#{clientController.modifClient.nom}" required="true" />

    	
    	<h:outputLabel for="prenom" value="Prenom" />
    	<p:inputText id="prenom" value="#{clientController.modifClient.prenom}" required="true" />
    		     	
    	<h:outputLabel for="email" value="email" />
    	<p:inputText id="email" value="#{clientController.modifClient.email}" required="true" />
    	
    	<h:outputLabel for="adresse" value="adresse" />
    	<p:inputText id="adresse" value="#{clientController.modifClient.adresse}" required="true" />

    	<h:outputLabel for="telephone" value="Téléphone" />
    	<p:inputText id="telephone" value="#{clientController.modifClient.telephone}" required="true" />
	     	              
      </h:panelGrid>
      <p:commandButton action="#{clientController.edit1}" value="Enregistrer les modifications">
      	<f:param name="clientId" value="#{clientController.modifClient.id}"/>
      </p:commandButton> 
      <h:messages globalOnly="true"/>
      
    </h:form>  
  
  </ui:define>
  
</ui:composition>
